import request from './Request';

export default class UserLike {
    static unLike(id) {
        return request({
            url: '/user/like/unLike',
            method: 'get',
            params: {
                id,
            }
        });
    }

    static like(id) {
        return request({
            url: '/user/like/like',
            method: 'get',
            params: {
                id,
            }
        });
    }

    // 返回所有数据
    static list(param) {
        return request({
            url: `/user/like/list`,
            method: 'get',
            params: {
                ...param,
            }
        });
    }
}    